package com.sinothk.server.plus;

import com.sinothk.server.plus.file.FileManager;
import com.sinothk.server.plus.map.MapManager;
import com.sinothk.server.plus.office.OfficeManager;
import com.sinothk.server.plus.qrcode.QrCodeManager;

public class XManager {

    public static QrCodeManager qrcode() {
//        qrcode().createOneCode("www.sinothk.com", new File("1dcode1.png"));
//        String result = qrcode().readOneCode(new File("1dcode1.png"));
//        System.out.println(result);
//        qrcode().createTwoCode("SINOTHK·勤思物联", new File("2dcode.png"));
//        String result2 = qrcode().readTwoCode(new File("2dcode.png"));
//        System.out.println(result2);
        return new QrCodeManager();
    }

    public static FileManager file() {
        return new FileManager();
    }

    public static MapManager map() {
        return new MapManager();
    }

    public static OfficeManager office() {
//        office().createPdfByHtmlFile("D:\\ittest\\html2pdf.html", "D:\\ittest\\html2pdf1.pdf");
//        office().createPdfByHtmlContent("<div>SINOTHK</div>", "D:\\ittest\\html2pdf2.pdf");

//        ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
//        office().createPdfByHtmlContent("D:\\ittest\\html2pdf.html", outputStream);
//        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(outputStream.toByteArray());

        return new OfficeManager();
    }

    public static void main(String[] args) throws Exception {



    }
}
